class CreateAdGroups < ActiveRecord::Migration[5.0]
  def change
    create_table :ad_groups do |t|
    	t.integer :user_id
    	t.integer :campaign_id
    	t.integer :campaign_type
    	t.string :title
    	t.string :subtitle
    	t.integer :ad_target_market_type
    	t.string :ad_target_market_area
    	t.string :ad_target_gender
    	t.string :ad_target_age
    	t.string :ad_target_marriage
    	t.string :ad_target_business_interest
    	t.string :ad_target_tempeture
    	t.string :ad_target_ray
    	t.string :ad_target_weather
    	t.string :ad_target_device_price
    	t.string :ad_target_os
    	t.string :ad_target_humidity
    	t.numeric :day_budget
    	t.integer :ad_put_type
    	t.timestamp :ad_put_start_at
    	t.timestamp :ad_put_end_at
    	t.numeric :ad_offer
    	t.integer :promotion_goal

      t.timestamps
    end
  end
end
